<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订单详情页面</title>
</head>
<link href="https://cdn.bootcss.com/bootstrap/3.0.1/css/bootstrap.min.css" rel="stylesheet">
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-4 column">
            <!--订单信息-->
            <table class="table table-bordered table-hover">
                <thead>
                <tr>
                    <th>
                        订单id
                    </th>
                    <th>
                        金额
                    </th>

                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>
                        ${orderDTO.orderId}
                    </td>
                    <td>
                    ${orderDTO.orderAmount}
                    </td>
                </tr>
                </tbody>
            </table>
        </div>

        <div class="col-md-12 column">
            <!--订单详细信息-->
            <table class="table table-bordered table-hover">
                <thead>
                <tr>
                    <th>
                        商品id
                    </th>
                    <th>
                        商品名称
                    </th>
                    <th>
                        价格
                    </th>
                    <th>
                        数量
                    </th>
                    <th>
                        金额
                    </th>

                </tr>
                </thead>
                <tbody>
                <#list orderDTO.orderDetailList as orderDetail>


                <tr>
                    <td>
                    ${orderDetail.productId}
                    </td>
                    <td>
                    ${orderDetail.productName}
                    </td>
                    <td>
                    ${orderDetail.productPrice}
                    </td>
                    <td>
                    ${orderDetail.productQuantity}
                    </td>
                    <td>
                    ${orderDetail.productQuantity*orderDetail.productPrice}
                    </td>
                </tr>
                </#list>
                </tbody>
            </table>
        </div>
        <!--操作-->
        <div class="col-md-12 column">
        <#if orderDTO.getOrderStatusEnum().msg =="新订单">
            <a href="${request.contextPath}/sell/order/finish?orderId=${orderDTO.orderId}" type="button" class="btn btn-default btn-primary">完结订单</a>
            <a href="${request.contextPath}/sell/order/cancel?orderId=${orderDTO.orderId}" type="button" class="btn btn-default btn-danger">取消订单</a>
        </#if>
        </div>
    </div>
</div>
</body>

</html>